projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
380454d
)
libxl: fix free of constant string in cdrom insert path
author
Kamala Narasimhan
<kamala.narasimhan@citrix.com>
Fri, 21 Jan 2011 17:44:07 +0000
(17:44 +0000)
committer
Kamala Narasimhan
<kamala.narasimhan@citrix.com>
Fri, 21 Jan 2011 17:44:07 +0000
(17:44 +0000)
Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl.c
b/tools/libxl/libxl.c
index 2ddd24ee3855fa741f637a1191d4e36bdf347b44..66ed7382cda59b589c77a959452ff4902585f183 100644
(file)
--- a/
tools/libxl/libxl.c
+++ b/
tools/libxl/libxl.c
@@
-1663,7
+1663,7
@@
int libxl_cdrom_insert(libxl_ctx *ctx, uint32_t domid, libxl_device_disk *disk)
int ret = ERROR_FAIL;
if (!disk->physpath) {
- disk->physpath =
""
;
+ disk->physpath =
strdup("")
;
disk->phystype = PHYSTYPE_PHY;
}
disks = libxl_device_disk_list(ctx, domid, &num);